]> dgit.raspbian.org Git - gnome-shell.git/commit
params: Simplify code
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 2 Jul 2019 03:24:29 +0000 (05:24 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 5 Jul 2019 11:32:31 +0000 (11:32 +0000)
commit46874eed05b9bb9e1ad8a5eee469c1f6eacb323f
tree44913d27b478b794de5742c3a675a2a23eac5b54
parente95f3febd6398fa56d363a1e13bc17af3de1f5d1
params: Simplify code

Standard javascript now has Object.assign() which is very similar to
Params.parse(), except that the latter by default disallows "extra"
parameters. We can still leverage the standard API by simply
implementing the error check, and then call out to Object.assign()
for the actual parameter merging.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/612
js/misc/params.js